package com.gxa.modules.entity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.ibatis.annotations.MapKey;

import java.math.BigDecimal;
import java.util.Date;
/** 
 * @team mackie Studio 
 * @Author kk 
 * @Date 2023-03-17 20:15:22 
 */
@Entity
@Data
@TableName("crm_order_goods" )
public class CrmOrderGoods  implements Serializable {

	private static final long serialVersionUID =  8885828977961096232L;

	/**
	 * 订单商品id
	 */
	@Id
	@TableId(value = "order_goods_id",type= IdType.AUTO)
	private Integer orderGoodsId;

	/**
	 * 数量
	 */
   	@TableField("quantity" )
	private Integer quantity;

	/**
	 * 折扣
	 */
   	@TableField("discount" )
	private BigDecimal discount;

	/**
	 * 录入时间
	 */
   	@TableField("entry_time" )
	private Date entryTime;

	/**
	 * 备注
	 */
   	@TableField("remarks" )
	private String remarks;

	/**
	 * 商品id
	 */
   	@TableField("goods_id" )
	private Integer goodsId;

	/**
	 * 订单id
	 */
   	@TableField("order_id" )
	private Integer orderId;
}
